package com.lingx.model.impl;

import com.alibaba.fastjson.annotation.JSONField;
import com.lingx.model.INode;
import com.lingx.model.annotation.FieldModelConfig;
import com.lingx.model.annotation.TreeNode;

public class DefaultEntity extends AbstractModel{

	private static final long serialVersionUID = 3171388709943476189L;
	public DefaultEntity() {
		this.setIconCls("el-icon-coin");
		this.setModelType("DefaultModel");
	}

	@FieldModelConfig(sort="1",name="模型代码",inputType="string")
	private String code;
	@FieldModelConfig(sort="2",name="模型名称",inputType="string")
	private String name;
	@JSONField(serialize=false)
	@FieldModelConfig(sort="4",name="数据表名",inputType="string")
	private String tableName;
	@JSONField(serialize=false)
	@FieldModelConfig(sort="7",name="查询条件",inputType="string")
	private String script;

	@JSONField(serialize=false)
	@FieldModelConfig(sort="9",name="显示模式",inputType="string",editor="hidden",editorParams="option:XSMS" )//editor="combobox",,{\"text\":\"无\",\"value\":\"\"},
	private String displayMode;
	
	@JSONField(serialize=false)
	@TreeNode
	private INode<DefaultConfig> configs;
	@JSONField(serialize=false)
	@TreeNode
	private INode<DefaultField> fields;
	@JSONField(serialize=false)
	@TreeNode
	private INode<DefaultMethod> methods;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getScript() {
		return script;
	}
	public void setScript(String script) {
		this.script = script;
	}
	public String getDisplayMode() {
		return displayMode;
	}
	public void setDisplayMode(String displayMode) {
		this.displayMode = displayMode;
	}
	public INode<DefaultConfig> getConfigs() {
		return configs;
	}
	public void setConfigs(INode<DefaultConfig> configs) {
		this.configs = configs;
	}
	public INode<DefaultField> getFields() {
		return fields;
	}
	public void setFields(INode<DefaultField> fields) {
		this.fields = fields;
	}
	public INode<DefaultMethod> getMethods() {
		return methods;
	}
	public void setMethods(INode<DefaultMethod> methods) {
		this.methods = methods;
	}
	
	
}
